-- MySqlBackup.NET 2.0.1
-- Dump Time: 2013-12-27 14:52:25
-- --------------------------------------
-- Server version 5.6.12-log MySQL Community Server (GPL)


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES latin1 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;


-- 
-- Definition of holter
-- 

DROP TABLE IF EXISTS `holter`;
CREATE TABLE IF NOT EXISTS `holter` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `PatientId` int(11) NOT NULL,
  `OutDate` date DEFAULT NULL,
  `PlayDate` date DEFAULT NULL,
  `OutTime` time DEFAULT NULL,
  `Indication` varchar(256) DEFAULT NULL,
  `Treatment` varchar(256) DEFAULT NULL,
  `Doctor` varchar(256) DEFAULT NULL,
  `Comment` varchar(1500) DEFAULT NULL,
  `Conclusion` varchar(1500) DEFAULT NULL,
  PRIMARY KEY (`Id`,`PatientId`),
  UNIQUE KEY `Id` (`Id`),
  KEY `PatientId` (`PatientId`),
  CONSTRAINT `holter_ibfk_1` FOREIGN KEY (`PatientId`) REFERENCES `patient` (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1;

-- 
-- Dumping data for table holter
-- 

/*!40000 ALTER TABLE `holter` DISABLE KEYS */;

/*!40000 ALTER TABLE `holter` ENABLE KEYS */;

-- 
-- Definition of patient
-- 

DROP TABLE IF EXISTS `patient`;
CREATE TABLE IF NOT EXISTS `patient` (
  `Id` int(11) NOT NULL AUTO_INCREMENT,
  `FirstName` varchar(256) NOT NULL,
  `LastName` varchar(256) NOT NULL,
  `BirthDate` date DEFAULT NULL,
  `Adress` varchar(256) DEFAULT NULL,
  `Phone` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`Id`),
  UNIQUE KEY `Id` (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=latin1;

-- 
-- Dumping data for table patient
-- 

/*!40000 ALTER TABLE `patient` DISABLE KEYS */;

/*!40000 ALTER TABLE `patient` ENABLE KEYS */;


/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;


-- Dump completed on 2013-12-27 14:52:25
-- Total time: 0:0:0:0:36 (d:h:m:s:ms)
